package com.translate.web.service.impl;

import com.translate.web.dao.ActivityManagerMapperMapper;
import com.translate.entity.ActivityManager;
import com.translate.web.service.IActivityManagerMapperService;
import com.basic.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class ActivityManagerMapperServiceImpl extends BaseServiceImpl<ActivityManager>
		implements IActivityManagerMapperService {
	public ActivityManagerMapperServiceImpl(ActivityManagerMapperMapper mapper) {
		super(mapper);
	}

	protected void insertPropteris(ActivityManager data) {
		long time = System.currentTimeMillis() / 1000;
		data.setCreateTime(time);
		data.setUpdateTime(time);
	}

	protected void updatePropteris(ActivityManager data) {
		data.setUpdateTime(System.currentTimeMillis() / 1000);
	}

	protected Class<ActivityManager> getEntityClass() {
		return ActivityManager.class;
	}
}